﻿<?php //Seyret Component v.0.3//
/**
* @package Seyret
* @version 0.3
* @copyright Copyright (C) 2008 Mustafa DINDAR. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Seyret Video Component is a free software.
* See seyrettos.html for license notices and details.
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

$document = & JFactory::getDocument();
$csslink=JURI :: root()."components/com_seyret/themes/default/style/default.seyret.css";
$document->addStyleSheet($csslink);

$jslink=JURI :: root()."components/com_seyret/includes/js/jquery-1.3.2.min.js";
$document->addScript($jslink);

$jslink=JURI :: root()."components/com_seyret/includes/js/jquery.cook.min.js";
$document->addScript($jslink);

$jslink=JURI :: root()."components/com_seyret/includes/js/jquery.colorbox-min.js";
$document->addScript($jslink);	

$csslink=JURI :: root()."components/com_seyret/themes/default/style/colorbox.css";
$document->addStyleSheet($csslink);

$jslink=JURI :: root()."components/com_seyret/includes/js/seyretmain.js";
$document->addScript($jslink);

$lang =& JFactory::getLanguage();
$language=$lang->_lang;

//Joomla behaves strange, it calculates the first seo wrong.
$dummy=$this->absURL("index.php?option=com_seyret" , true);





if ($this->registry->getValue('permission.main.canseetoolbar')=="1"){
?>
	<div id="seyrettoolbar">
<?php 	

	if ($this->registry->getValue('permission.toolbar.canseehomebutton')=="1"){
	?>
		<div id="homebuttondiv" class="toolbarbutton">
			<a href="<?php echo $this->absURL("index.php?option=com_seyret" , true);?>" >
				<?php echo JText::_('Videos') ?>
			</a>
		</div>
	<?php
	}

	if ($this->registry->getValue('permission.toolbar.canseeaddvideobutton')=="1"){
	?>
		<div id="addvideobuttondiv" class="toolbarbutton">
			<a href="<?php echo $this->absURL("index.php?option=com_seyret&view=editvideo" , true); ?>" >
				<?php echo JText::_('Add Video') ?>
			</a>
		</div>
	<?php
	}

	
	if ($this->registry->getValue('permission.toolbar.canseechannelsbutton')=="1"){
	?>
		<div id="channelsbuttondiv" class="toolbarbutton">
			<a href="<?php echo $this->absURL("index.php?option=com_seyret&view=channel", true); ?>" >
				<?php echo JText::_('Channels') ?>
			</a>
		</div>
	<?php
	}	
?>






		<div id="searchdiv">

				<form action="<?php echo $this->absURL("index.php?option=com_seyret&amp;view=search&amp;task=qs"); ?>" method="get" name="adminForm">
					<input type="text" id="searchkey" name="searchkey" size="10" class="searchbox" value="<?php echo JText::_('Search');?>" onblur="if(this.value=='') this.value='<?php echo JText::_('Search');?>';" onfocus="if(this.value=='<?php echo JText::_('Search');?>') this.value='';" />
					<input type="hidden" name="option" value="com_seyret" />
					<input type="hidden" name="view" value="search" />
					<input type="hidden" name="task" value="qs" />

				</form>


		</div>	
	
	
	</div>


	<div style="clear:both;"></div>

<?php
}

?>



